home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / makeg < prev    next >
Encoding:
Text File  |  2006-12-20  |  417 b   |  14 lines

  1. #! /bin/sh
  2. # makeg - run "make" with options necessary to make a debuggable executable
  3. # $Xorg: makeg.sh,v 1.3 2000/08/17 19:41:52 cpqbld Exp $
  4.  
  5. # set GDB=1 in your environment if using gdb on Solaris 2.
  6.  
  7. make="${MAKE-make}"
  8. flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"
  9.  
  10. # gdb on Solaris needs the stabs included in the executable
  11. test "${GDB+yes}" = yes && flags="$flags -xs"
  12.  
  13. exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}
  14.